yzqzss|一座桥在水上's Note
TG 小功能:时光机 全局搜索栏中输入日期,可以全局搜索指定日期范围内的多个聊天会话中的消息。 *无法绕过群聊聊天记录 100 万回溯限制。
TG 小功能:长按太阳/月亮图标可一步打开 Chat Settings。
Please open Telegram to view this post
VIEW IN TELEGRAM
yzqzss|一座桥在水上's Note
原始消息已删除
坏,我成 code reviewer 了。🆘,我不想吃💩啊。
正在吃💩
正在吃💩
This media is not supported in your browser
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
新栏目,尽量每天发点 #今天看了啥 ,以使频道名副其实——是 Note。
http encoding:
https://httptoolkit.com/blog/http-encodings/ (blog, en)
> 离谱,竟然会有服务端的 content-encoding 返回 amz-1.0, json, utf-8, text, binary 之类的内容。
html encoding:
https://encoding.spec.whatwg.org (spec, en)
→ https://html.spec.whatwg.org/multipage/parsing.html#determining-the-character-encoding (spec, en)
→ https://html.spec.whatwg.org/multipage/semantics.html#attr-meta-charset (spec, en)
https://en.wikipedia.org/wiki/Windows-1252 (wiki, en)
> websites declared ISO 8859-1 which is treated as Windows-1252 by all modern browsers (as required by the HTML5 standard)
→ https://w3techs.com/technologies/overview/character_encoding (各 html 编码的使用率,也有分语言的统计)
https://www.xiaogd.net/md/web-page-encoding-and-mojibake-1 (blog, zh)
repo:
https://github.com/edsrzf/mmap-go
https://github.com/long2ice/meilisync
有意思的代码:
https://cs.opensource.google/go/go/+/refs/tags/go1.24.2:src/unicode/utf8/utf8.go;drc=3d33437c450aa74014ea1d41cd986b6ee6266984;l=444
http encoding:
https://httptoolkit.com/blog/http-encodings/ (blog, en)
> 离谱,竟然会有服务端的 content-encoding 返回 amz-1.0, json, utf-8, text, binary 之类的内容。
html encoding:
https://encoding.spec.whatwg.org (spec, en)
→ https://html.spec.whatwg.org/multipage/parsing.html#determining-the-character-encoding (spec, en)
→ https://html.spec.whatwg.org/multipage/semantics.html#attr-meta-charset (spec, en)
https://en.wikipedia.org/wiki/Windows-1252 (wiki, en)
> websites declared ISO 8859-1 which is treated as Windows-1252 by all modern browsers (as required by the HTML5 standard)
→ https://w3techs.com/technologies/overview/character_encoding (各 html 编码的使用率,也有分语言的统计)
https://www.xiaogd.net/md/web-page-encoding-and-mojibake-1 (blog, zh)
repo:
https://github.com/edsrzf/mmap-go
https://github.com/long2ice/meilisync
有意思的代码:
https://cs.opensource.google/go/go/+/refs/tags/go1.24.2:src/unicode/utf8/utf8.go;drc=3d33437c450aa74014ea1d41cd986b6ee6266984;l=444
Httptoolkit
Encoding your HTTP for fun and profit
HTTP content encoding is an incredibly powerful tool that can save you huge amounts of bandwidth and make your web or mobile application faster, basically for...
买全新服务器,预算2w~4w,走报销。要求国内品牌。
懂行的可以推荐些型号吗?
要是我自己买肯定就是捡垃圾了,但是是学校买,说二手不好走账,非得国产+全新。
看了眼,全新的价格都很坑爹。
用于虚拟化开小鸡。
懂行的可以推荐些型号吗?
要是我自己买肯定就是捡垃圾了,但是是学校买,说二手不好走账,非得国产+全新。
看了眼,全新的价格都很坑爹。
用于虚拟化开小鸡。
yzqzss|一座桥在水上's Note
买全新服务器,预算2w~4w,走报销。要求国内品牌。 懂行的可以推荐些型号吗? 要是我自己买肯定就是捡垃圾了,但是是学校买,说二手不好走账,非得国产+全新。 看了眼,全新的价格都很坑爹。 用于虚拟化开小鸡。
离谱的是,明明机房里有台只插了一根内存条的 r730 吃灰,只要再花不到1k块钱买一吨内存条+还掉两个cpu就能满血复活。但是说不好走账报销。
今天看了啥:
https://html.spec.whatwg.org/multipage/urls-and-fetching.html#resolving-urls
Let encoding be UTF-8.
If environment is a Document object, then set [encoding] (document charset) to environment's character encoding.
https://url.spec.whatwg.org/#query-state
2. Percent-encode after encoding, with [encoding], buffer, and queryPercentEncodeSet, and append the result to url’s query.
https://url.spec.whatwg.org/#path-state
1. ...special cases...
2. Otherwise, run these steps:
.... special cases ...
3. UTF-8 percent-encode c using the path percent-encode set and append the result to buffer.
好 TM 抽象啊,web 就是一坨屎山。
https://html.spec.whatwg.org/multipage/urls-and-fetching.html#resolving-urls
Let encoding be UTF-8.
If environment is a Document object, then set [encoding] (document charset) to environment's character encoding.
https://url.spec.whatwg.org/#query-state
2. Percent-encode after encoding, with [encoding], buffer, and queryPercentEncodeSet, and append the result to url’s query.
https://url.spec.whatwg.org/#path-state
1. ...special cases...
2. Otherwise, run these steps:
.... special cases ...
3. UTF-8 percent-encode c using the path percent-encode set and append the result to buffer.
好 TM 抽象啊,web 就是一坨屎山。
This media is not supported in your browser
VIEW IN TELEGRAM
Forwarded from 囍频道 (IceCode New)
https://github.com/IceCodeNew/anata-no-minato
在那之后 @yzqzss 开发了一个 Python 脚本用于自动从 ~/.ssh/config 转换出 hosts.csv 配置
我非常欣赏这个脚本,征求过同意以后把这段脚本集成到了我的项目里。感谢他给我的启发(和借我抄的作业)
现在你可以在 https://github.com/IceCodeNew/anata-no-minato 上看到我新开的 bug 全家桶啦~
新的镜像只需要挂载
在那之后 @yzqzss 开发了一个 Python 脚本用于自动从 ~/.ssh/config 转换出 hosts.csv 配置
我非常欣赏这个脚本,征求过同意以后把这段脚本集成到了我的项目里。感谢他给我的启发(和借我抄的作业)
现在你可以在 https://github.com/IceCodeNew/anata-no-minato 上看到我新开的 bug 全家桶啦~
新的镜像只需要挂载
${HOME}/.ssh/
目录就可以食用了。但是仍然推荐参考 README.md 下方的说明,生成 ananta 函数并写入 ~/.bashrc 文件,这样日后使用只要简单执行 ananta whoami
即可GitHub
GitHub - IceCodeNew/anata-no-minato
Contribute to IceCodeNew/anata-no-minato development by creating an account on GitHub.